Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
sajari-website
Advanced tools
Website extensions for the Sajari API. Automatically index site content, add user profiles, render search and recommendations, etc.
Sajari Search is a hosted search and recommendation service supporting instant search, various recommendations widgets and automatic content indexing.
This library is UMD compatible, you can use it with any module loader.
If you don't use a module loader, it will export an SJ
method into the window
object. This is the default install code shown in your Sajari control panel.
To install:
npm install sajari-website --save
This module is designed for browser integration. It is a wrapper for the base Sajari API module that automatically integrates several key functions:
Example:
Simple search integration using an overlay to display results:
<input type="search" data-sj-search-query />
Example:
Search integration displaying 5 results within the page (note: results can be placed anywhere):
<input type="search" data-sj-search-query data-sj-maxresults="5" />
<div data-sj-search-results ></div>
Advanced example: Search integration favouring recent and local results, filtering to show only the "bike" category, displaying within the page (note: results can be placed anywhere):
<input type="search" data-sj-search-query data-sj-search-recent data-sj-local data-sj-filter="category,bike" />
<div data-sj-search-results ></div>
Example:
Related (to current page) recommendations integration:
<div data-sj-related></div>
Example:
Popular (site wide) recommendations integration:
<div data-sj-popular></div>
Example:
Related recommendations integration with 3 results, limited to pages where the URL contains "comedy", favour local results (works if pages have a lat-lng):
<div data-sj-related data-sj-local data-sj-maxresults="3" data-sj-filters="~url,comedy"></div>
FAQs
Website extensions for the Sajari API. Automatically index site content, add user profiles, render search and recommendations, etc.
The npm package sajari-website receives a total of 11 weekly downloads. As such, sajari-website popularity was classified as not popular.
We found that sajari-website demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.